#ifndef DISPLAYNUM_H
#define DISPLAYNUM_H
#include <QObject>
#include <QColor>
class DisplayNum :public QObject
{
    Q_OBJECT

    Q_PROPERTY(double so2 READ getSo2 WRITE setSo2 NOTIFY sendSo2Change)
    Q_PROPERTY(double co READ getCo WRITE setCo NOTIFY sendCoChange)
    Q_PROPERTY(double no READ getNo WRITE setNo NOTIFY sendNoChange)
    Q_PROPERTY(double o2 READ getO2 WRITE setO2 NOTIFY sendO2Change)
public:
    explicit DisplayNum(QObject *parent = 0);
    double getSo2(void);
    double getCo(void);
    double getO2(void);
    double getNo(void);
    void setSo2(double so2);
    void setCo(double co);
    void setNo(double no);
    void setO2(double o2);
    Q_INVOKABLE void getnum(QString num);

signals:
    void sendSo2Change(void);
    void sendCoChange(void);
    void sendNoChange(void);
    void sendO2Change(void);


    private:
    double m_so2;
    double m_co;
    double m_no;
    double m_o2;


};

#endif // DISPLAYNUM_H
